package com.wjy.qs.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.wjy.common.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author ybxxszl
 * @since 2019-02-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "Author对象", description = "")
public class Author extends BaseEntity implements Serializable {

    public static final String AUTHOR_ID = "author_id";
    public static final String AUTHOR_ACCOUNT = "author_account";
    public static final String AUTHOR_PASSWORD = "author_password";
    public static final String AUTHOR_NAME = "author_name";
    public static final String AUTHOR_SEX = "author_sex";
    public static final String AUTHOR_BIRTHDAY = "author_birthday";
    public static final String AUTHOR_PHONE = "author_phone";
    public static final String AUTHOR_EMAIL = "author_email";
    public static final String AUTHOR_PHOTO = "author_photo";
    public static final String AUTHOR_STATE = "author_state";
    public static final String LOGIC_DELETE = "logic_delete";
    public static final String VERSION = "version";
    public static final String INSERT_ID = "insert_id";
    public static final String INSERT_TIME = "insert_time";
    public static final String UPDATE_ID = "update_id";
    public static final String UPDATE_TIME = "update_time";
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "作者ID")
    @TableId(value = "author_id", type = IdType.UUID)
    private String authorId;
    @ApiModelProperty(value = "作者账号")
    @TableField("author_account")
    private String authorAccount;
    @ApiModelProperty(value = "作者密码")
    @TableField("author_password")
    private String authorPassword;
    @ApiModelProperty(value = "作者姓名")
    @TableField("author_name")
    private String authorName;
    @ApiModelProperty(value = "作者性别")
    @TableField("author_sex")
    private String authorSex;
    @ApiModelProperty(value = "作者出生日期")
    @TableField("author_birthday")
    private Date authorBirthday;
    @ApiModelProperty(value = "作者电话号码")
    @TableField("author_phone")
    private String authorPhone;
    @ApiModelProperty(value = "作者电子邮件")
    @TableField("author_email")
    private String authorEmail;
    @ApiModelProperty(value = "作者照片")
    @TableField("author_photo")
    private String authorPhoto;
    @ApiModelProperty(value = "作者状态")
    @TableField("author_state")
    private Integer authorState;
    @ApiModelProperty(value = "逻辑删除")
    @TableField(value = "logic_delete", fill = FieldFill.INSERT)
    @TableLogic
    private Integer logicDelete;
    @ApiModelProperty(value = "乐观锁")
    @TableField(value = "version", fill = FieldFill.INSERT)
    @Version
    private Integer version;
    @ApiModelProperty(value = "添加人ID")
    @TableField(value = "insert_id", fill = FieldFill.INSERT)
    private String insertId;
    @ApiModelProperty(value = "添加时间")
    @TableField(value = "insert_time", fill = FieldFill.INSERT)
    private Date insertTime;
    @ApiModelProperty(value = "更新人ID")
    @TableField(value = "update_id", fill = FieldFill.UPDATE)
    private String updateId;
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

}
